package controlSoftware.GUI;


public class MapObject {
	
	public enum MapObjType
	{
		NONE,		//error state
		REGION,
		CALIBRATION
	}
	private MapObjType type;
	
	private MapNode nHead;
	private int numOfNodes;
	
	
	// creates a new map object
	public MapObject(MapObjType type)
	{
		this.type = type;
		this.nHead = null;
		this.numOfNodes = 0;
	}


	// inserts a coordinate to define the object
	public void insertNode(int x, int y) {
		
		MapNode newNode = new MapNode (x, y);
		newNode.nextMapNode = this.nHead;
		this.nHead = newNode;
		this.numOfNodes = this.numOfNodes + 1;
	}
	
	public MapObjType getType()
	{
		return this.type;
	}
	
	public int getNumOfNodes()
	{
		return this.numOfNodes;
	}
	
	public MapNode getNodeHead()
	{
		return this.nHead;
	}


}
